package file;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 74646
 * Date: 2022-06-15
 * Time: 17:16
 */
public class Demo7 {
    public static void main(String[] args) {
        //文件重命名
        File file1 = new File("./aaa");
        File file2 = new File("./bbb");
        file1.renameTo(file2); //将文件名aaa改为bbb
    }
}
